package com.yixin.hospital.entity.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class DeptAndJobDutyTreeNodeVO {
    private Long id;
    private valueVo value;
    private String label;
    private Integer type;
    private List<DeptAndJobDutyTreeNodeVO> children = new ArrayList<>();

    public DeptAndJobDutyTreeNodeVO(){}
    public DeptAndJobDutyTreeNodeVO(Long id, valueVo value, String label, Integer type, List<DeptAndJobDutyTreeNodeVO> children) {
        this.id = id;
        this.value = value;
        this.label = label;
        this.type = type;
        this.children = children;
    }

    @Data
    public static class valueVo {
        private Long id;
        private String name;
        private Integer type;

        public valueVo(Long id, String name, Integer type) {
            this.id = id;
            this.name = name;
            this.type = type;
        }
    }

}
